const dataService = require('../services/dataService.js')

class dataController {
    async carData(ctx) {
        const body = await dataService.carData(ctx)
        ctx.body = body
    }
    async homeData(ctx) {
        const body = await dataService.homeData(ctx)
        ctx.body = body
    }
    async getCarsPicture(ctx) {
        const body = await dataService.getCarsPicture(ctx)
        ctx.body = body
    }
    async selectDetail(ctx) {
        const body = await dataService.selectDetail(ctx)
        ctx.body = body
    }
    async searchCar(ctx) {
        const body = await dataService.searchCar(ctx)
        ctx.body = body
    }
    async concernDetail(ctx) {
        const body = await dataService.concernDetail(ctx)
        ctx.body = body
    }
    async carDetail(ctx) {
        const body = await dataService.carDetail(ctx)
        ctx.body = body
    }
    async _carDetail(ctx) {
        const body = await dataService._carDetail(ctx)
        ctx.body = body
    }
    async _carCity(ctx) {
        const body = await dataService._carCity(ctx)
        ctx.body = body
    }
    async carRank(ctx) {
        const body = await dataService.carRank(ctx)
        ctx.body = body
    }
    async usersDynamic(ctx) {
        const body = await dataService.usersDynamic(ctx)
        ctx.body = body
    }
    async getJuheWeather(ctx) {
        const body = await dataService.getJuheWeather(ctx)
        ctx.body = body
    }
    async twoHander(ctx) {
        const body = await dataService.twoHander(ctx)
        ctx.body = body
    }
    async fourS(ctx) {
        const body = await dataService.fourS(ctx)
        ctx.body = body
    }
    async twoRecommend(ctx) {
        const body = await dataService.twoRecommend(ctx)
        ctx.body = body
    }
    async luxuryCar(ctx) {
        const body = await dataService.luxuryCar(ctx)
        ctx.body = body
    }

}

module.exports = new dataController();